package com.ruoyi.fun.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.fun.domain.EcOrder;

/**
 * 订单Mapper接口
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
public interface EcOrderMapper 
{
    /**
     * 查询订单
     * 
     * @param orderId 订单主键
     * @return 订单
     */
    public EcOrder selectEcOrderByOrderId(Long orderId);

    /**
     * 查询订单列表
     * 
     * @param ecOrder 订单
     * @return 订单集合
     */
    public List<EcOrder> selectEcOrderList(EcOrder ecOrder);

    /**
     * 新增订单
     * 
     * @param ecOrder 订单
     * @return 结果
     */
    public int insertEcOrder(EcOrder ecOrder);

    /**
     * 修改订单
     * 
     * @param ecOrder 订单
     * @return 结果
     */
    public int updateEcOrder(EcOrder ecOrder);

    /**
     * 删除订单
     * 
     * @param orderId 订单主键
     * @return 结果
     */
    public int deleteEcOrderByOrderId(Long orderId);

    /**
     * 批量删除订单
     * 
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEcOrderByOrderIds(Long[] orderIds);

    /**
     * 根据OrderID和组织ID查询Order
     * 
     * @param orderId Order主键
     * @param orgId 组织ID
     * @return Order
     */
    public EcOrder selectEcOrderByOrderIdAndOrgId(@Param("orderId") Long orderId, @Param("orgId") Long orgId);

    /**
     * 根据组织ID查询Order列表
     * 
     * @param ecorder Order
     * @param orgId 组织ID
     * @return Order集合
     */
    public List<EcOrder> selectEcOrderListByOrgId(@Param("ecorder") EcOrder ecorder, @Param("orgId") Long orgId);
}
